package com.weishi.project.training.service.impl;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.weishi.project.training.mapper.TrainingGroupMapper;
import com.weishi.project.training.domain.TrainingGroup;
import com.weishi.project.training.service.ITrainingGroupService;

/**
 * 训练小组Service业务层处理
 */
@Service
public class TrainingGroupServiceImpl extends ServiceImpl<TrainingGroupMapper, TrainingGroup> implements ITrainingGroupService {

    @Autowired
    private TrainingGroupMapper trainingGroupMapper;

    /**
     * 查询训练小组列表
     */
    @Override
    public List<TrainingGroup> selectTrainingGroupList(TrainingGroup trainingGroup) {
        return trainingGroupMapper.selectTrainingGroupList(trainingGroup);
    }

    @Override
    public List<TrainingGroup> selectTrainingGroupList1(TrainingGroup trainingGroup) {
        return trainingGroupMapper.selectTrainingGroupList1(trainingGroup);
    }

    @Override
    public List<TrainingGroup> getGroupNameList() {
        return trainingGroupMapper.getGroupNameList();
    }

    @Override
    public List<TrainingGroup> getTrainingGroup(Map<String, Object> map) {
        return trainingGroupMapper.getTrainingGroup(map);
    }

    @Override
    public Integer getTrainingDayIdByGroupId(int groupId) {
        return trainingGroupMapper.getTrainingDayIdByGroupId(groupId);
    }

}